package com.ogawa.projectcommon.dao

import androidx.room.*
import com.ogawa.projectcommon.bean.MusicMixCollectBean

@Dao
interface MusicMixCollectDao {
    @Query("SELECT * FROM musicmixcollect ORDER BY position ASC")
    fun getAllMusic(): MutableList<MusicMixCollectBean>

    @Delete
    fun deleteMusic(beanMix: MusicMixCollectBean)

    @Update
    fun updateMusic(beanMix: MusicMixCollectBean)

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(beanMix: MusicMixCollectBean)
}
